﻿using System;
using System.Data;

//自定义命名空间
using DreamCube.Framework.DataAccess.Basic;

namespace RegexTester.UI.Model
{
    public class TestHistory
    {
        /// <summary>
        /// 主键值
        /// </summary>
        [DbColumn("id", DbType.Int32, IsPrimaryKey = true, IsIdentity = true)]
        public Int32 ID
        {
            get;
            set;
        }

        /// <summary>
        /// 对应的正则表达式
        /// </summary>
        [DbColumn("regex", System.Data.DbType.String)]
        public String Regex
        {
            get;
            set;
        }

        /// <summary>
        /// 需要验证的文本
        /// </summary>
        [DbColumn("source", System.Data.DbType.String)]
        public String Source
        {
            get;
            set;
        }

        /// <summary>
        /// 测试的时间点
        /// </summary>
        [DbColumn("testDatetime", System.Data.DbType.DateTime)]
        public DateTime TestDatetime
        {
            get;
            set;
        }
    }
}
